/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.Toolkit;
import javax.swing.JFrame;

/**
 *
 * @author morales
 */
public class principal_vista extends javax.swing.JFrame {

    /**
     * Creates new form principal_vista
     */
    public principal_vista() {
        initComponents();
        setSize(1360,720);
        setLocationRelativeTo(null);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        dpn_escritorio = new javax.swing.JDesktopPane();
        jMenuBar1 = new javax.swing.JMenuBar();
        menu_consulta = new javax.swing.JMenu();
        mnu_atencion = new javax.swing.JMenu();
        mnu_cita_general = new javax.swing.JMenuItem();
        jMenuTiempoEsperaCirugias = new javax.swing.JMenuItem();
        mnu_formulacion = new javax.swing.JMenuItem();
        mnu_pagos = new javax.swing.JMenuItem();
        mnu_retiros = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        Separator = new javax.swing.JPopupMenu.Separator();
        mnu_salir = new javax.swing.JMenuItem();

        jMenuItem1.setText("jMenuItem1");

        jMenuItem3.setText("jMenuItem3");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("DWH Colombia saludable");

        menu_consulta.setText("Consulta");

        mnu_atencion.setText("Atención");

        mnu_cita_general.setText("Promedio de tiempo de espera en citas");
        mnu_cita_general.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnu_cita_generalActionPerformed(evt);
            }
        });
        mnu_atencion.add(mnu_cita_general);

        jMenuTiempoEsperaCirugias.setText("Promedio de tiempo de espera en cirugias");
        jMenuTiempoEsperaCirugias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuTiempoEsperaCirugiasActionPerformed(evt);
            }
        });
        mnu_atencion.add(jMenuTiempoEsperaCirugias);

        menu_consulta.add(mnu_atencion);

        mnu_formulacion.setText("Formulacion medica");
        mnu_formulacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnu_formulacionActionPerformed(evt);
            }
        });
        menu_consulta.add(mnu_formulacion);

        mnu_pagos.setText("Pagos");
        mnu_pagos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnu_pagosActionPerformed(evt);
            }
        });
        menu_consulta.add(mnu_pagos);

        mnu_retiros.setText("Retiros");
        mnu_retiros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnu_retirosActionPerformed(evt);
            }
        });
        menu_consulta.add(mnu_retiros);

        jMenuItem4.setText("Demanda de Atencion por Departamentos");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        menu_consulta.add(jMenuItem4);

        jMenu1.setText("Costos");

        jMenuItem2.setText("Costos servicios");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        menu_consulta.add(jMenu1);
        menu_consulta.add(Separator);

        mnu_salir.setText("Salir");
        mnu_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnu_salirActionPerformed(evt);
            }
        });
        menu_consulta.add(mnu_salir);

        jMenuBar1.add(menu_consulta);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(dpn_escritorio, javax.swing.GroupLayout.DEFAULT_SIZE, 758, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(dpn_escritorio, javax.swing.GroupLayout.DEFAULT_SIZE, 508, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnu_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnu_salirActionPerformed
        System.exit(0);
    }//GEN-LAST:event_mnu_salirActionPerformed

    private void mnu_formulacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnu_formulacionActionPerformed
        Formulacion medica = new Formulacion();
        dpn_escritorio.add(medica);
        medica.show();
    }//GEN-LAST:event_mnu_formulacionActionPerformed

    private void mnu_cita_generalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnu_cita_generalActionPerformed
        CitasGenerales cg = new CitasGenerales();
        dpn_escritorio.add(cg);
        cg.show();
    }//GEN-LAST:event_mnu_cita_generalActionPerformed

    private void mnu_pagosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnu_pagosActionPerformed
        Pagos p = new Pagos();
        dpn_escritorio.add(p);
        p.show();
//        pagos p = new pagos();
//        dpn_escritorio.add(p);
//        p.show();
    }//GEN-LAST:event_mnu_pagosActionPerformed

    private void mnu_retirosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnu_retirosActionPerformed
       //retiros r = new retiros();
       //dpn_escritorio.add(r);
       //r.show();

       Retiros r = new Retiros();
       dpn_escritorio.add(r);
       r.show();
    }//GEN-LAST:event_mnu_retirosActionPerformed

    private void jMenuTiempoEsperaCirugiasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuTiempoEsperaCirugiasActionPerformed

        TiempoEsperaCirugias tpe = new TiempoEsperaCirugias();
        dpn_escritorio.add(tpe);
        tpe.show();
        

    }//GEN-LAST:event_jMenuTiempoEsperaCirugiasActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed

        
        CostosGUI GUI = new CostosGUI();
        dpn_escritorio.add(GUI);
        GUI.show();
        
        
        
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed

        DemandaDept de = new DemandaDept();
        dpn_escritorio.add(de);
        de.show();
        
        
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(principal_vista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(principal_vista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(principal_vista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(principal_vista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new principal_vista().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPopupMenu.Separator Separator;
    private javax.swing.JDesktopPane dpn_escritorio;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuTiempoEsperaCirugias;
    private javax.swing.JMenu menu_consulta;
    private javax.swing.JMenu mnu_atencion;
    private javax.swing.JMenuItem mnu_cita_general;
    private javax.swing.JMenuItem mnu_formulacion;
    private javax.swing.JMenuItem mnu_pagos;
    private javax.swing.JMenuItem mnu_retiros;
    private javax.swing.JMenuItem mnu_salir;
    // End of variables declaration//GEN-END:variables
}
